
import mods.CrystalLib
import mods.Iris
cdef object SCR_qd

def Init(Scr):
    global SCR_qd
    SCR_qd = Scr
    mods.CrystalLib.printm('load mod: Quickdraw')

# 20240110
cpdef DrawBlocks(object Map):
    cdef unsigned int x
    cdef unsigned int y
    for x in range(0, 20):
        for y in range(0, 15):
            mods.Iris.draw_block(x, y, Map[y][x].mtype, SCR_qd)

cpdef DrawAddons(object Map):
    cdef unsigned int x
    cdef unsigned int y
    for x in range(0, 20):
        for y in range(0, 15):
            mods.Iris. draw_addon(x, y, Map[y][x].addon)
